package org.jeecg.modules.wangyue.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.wangyue.entity.UserFollow;
import org.jeecg.modules.wangyue.entity.UserRoleInfo;
import org.jeecg.modules.wangyue.mapper.UserFollowMapper;
import org.jeecg.modules.wangyue.service.IUserFollowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 用户关注表
 * @Author: jeecg-boot
 * @Date:   2023-06-30
 * @Version: V1.0
 */
@Service
public class UserFollowServiceImpl extends ServiceImpl<UserFollowMapper, UserFollow> implements IUserFollowService {

    @Autowired
    private UserFollowMapper userFollowMapper;

    @Override
    public IPage<UserRoleInfo> getUserRoleInfoPage(Page page, String userId, String userType) {
        return userFollowMapper.queryUserRoleInfoPage(page, userId, userType);
    }
}
